package com.EAsystem.mapper;

import com.EAsystem.entity.Homework;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HomeworkMapper {
    
    // 插入作业
    int insertHomework(Homework homework);
    
    // 更新作业
    int updateHomework(Homework homework);
    
    // 根据ID删除作业
    int deleteHomeworkById(Long id);
    
    // 根据ID查询作业
    Homework findHomeworkById(Long id);
    

    

    
    // 根据课程ID查询作业
    List<Homework> findHomeworksByCourseId(Long courseId);
    
    // 条件查询作业
    List<Homework> findHomeworksByCondition(Homework homework);
}